package com.efast.cafe.portal.service.query.defauleValue;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


import com.efast.cafe.util.ClassUtils;
@SuppressWarnings("all")
public class BaseConditionValue {
	public static final BaseConditionValue INSTANCE = new BaseConditionValue();
	public static Map<String, Class> map;
	public BaseConditionValue() {
		
	}
	public void init () {
		try {
			Map<String, Class> maps = new HashMap<String, Class>();
			List<Class> list = ClassUtils.getAllClassByParentClass(AbstractConditionValue.class);
			if (list != null && list.size() > 0) {
				for (Class class1 : list) {
					Object object = class1.newInstance();
					if (object instanceof AbstractConditionValue) {
						maps.put(((AbstractConditionValue) object).getShortName(), class1);
						
					}
				}
				BaseConditionValue value = BaseConditionValue.INSTANCE;
				value.map = maps;
			}
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
